package com.example.jetour_line.map.mapview;
import android.content.Context;
import android.widget.LinearLayout;

public class BaseMarkerView extends LinearLayout {
    public boolean isSelect = false;
    public boolean canSel = true;//默认可以切换选择状态
    Context mContext;
    //不可切换选择状态
    public BaseMarkerView(Context context){
        super(context);
        canSel = false;
    }

    //可以切换选中是得状态
    public BaseMarkerView(Context context, boolean select) {
        super(context);
        mContext = context;
        isSelect = select;
    }
    /**
     * 返回一个新创建的 markerView 对象
     * */
    public BaseMarkerView getNewMarker(boolean select) {
//        Log.d("SDKgetNewMarker",select+"");
        if(!canSel){
            return null;
        }
        isSelect = select;
//        Log.d("SDKgetNewMarker",select+"111");
        return new BaseMarkerView(mContext,select);
    }
}
